#pragma once

#include <boost/smart_ptr.hpp>
#include <boost/optional.hpp>

#include "exports.hpp"




class CRAWLER_API Reply
{
public:

	typedef boost::optional<Reply>           Opt;
	typedef boost::shared_ptr<Reply>         Ptr;
	typedef boost::shared_ptr<const Reply>   const_Ptr;

private:

	QUrl         m_url;
	QByteArray   m_content;

public:

	Reply(QUrl url, const std::vector<char>& data);
	Reply(QUrl url, QByteArray content);

	QUrl url() const;
	QByteArray content() const;
};
///////////////////////////////////////////////////////////////////////////////////////////////////

typedef boost::shared_ptr<Reply>   ReplyPtr;
